package org.tio.sitexxx.web.server.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.utils.jfinal.P;

import java.util.concurrent.atomic.AtomicInteger;

public class QnUtils {
    public static final QnUtils qn=new QnUtils();

    private QnUtils(){

    }
    private static Logger log = LoggerFactory.getLogger(QnUtils.class);

    private static final AtomicInteger atomicInteger = new AtomicInteger(1);

    /**
     * 获取明星id
     * @param star_id
     * @return
     */
    public  String  getFileKey(int star_id){
        return star_id+"-"+atomicInteger.getAndIncrement()+".jpg";
    }
}
